home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 3 / ct-rom iiib.zip / ct-rom iiib / WINDOWS / DIVERSEN / WINE02BX / PERL-MOD.ELC < prev    next >
Text File  |  1993-03-28  |  11KB  |  138 lines

  1. ;;; compiled by @win386 on Sat Mar 13 14:32:40 1993
  2. ;;; from file c:/src/lucid-19.4/lisp/modes/perl-mod.el
  3. ;;; emacs version 19.3 Lucid.
  4. ;;; bytecomp version 2.08; 27-aug-92.
  5. ;;; optimization is on.
  6. ;;; this file uses opcodes which do not exist in Emacs18.
  7.  
  8. (if (and (boundp 'emacs-version)
  9.      (or (and (boundp 'epoch::version) epoch::version)
  10.          (string-lessp emacs-version "19")))
  11.     (error "This file was compiled for Emacs19."))
  12.  
  13. (defvar perl-mode-abbrev-table nil "\
  14. Abbrev table in use in perl-mode buffers.")
  15. (define-abbrev-table 'perl-mode-abbrev-table nil)
  16. (defvar perl-mode-map nil "\
  17. Keymap used in Perl mode.")
  18. (byte-code "¼┐┴ ┬├─#ê┬┼─#ê┬╞─#ê┬╟─#ê┬╚╔#ê┬╩╦#ê┬╠═#ê┬╬╧#ê┬╨╤#ê┬╥╙#ê┴ç" [perl-mode-map make-sparse-keymap define-key "{" electric-perl-terminator "}" ";" ":" "" perl-beginning-of-function "" perl-end-of-function "" mark-perl-function "" indent-perl-exp "" backward-delete-char-untabify "    " perl-indent-command] 4)
  19. (autoload 'c-macro-expand "cmacexp" "\
  20. Display the result of expanding all C macros occurring in the region.
  21. The expansion is entirely correct because it uses the C preprocessor." t)
  22. (defvar perl-mode-syntax-table nil "\
  23. Syntax table in use in perl-mode buffers.")
  24. (byte-code "¼σ┴┬ !├─┼#ê├╞╟#ê├╚╔#ê├╩╦#ê├╠╦#ê├═╬#ê├╧╦#ê├╨╦#ê├╤╦#ê├╥╦#ê├╙╦#ê├╘╦#ê├╒╦#ê├╓╫#ê├╪╬#ê├┘╦#ê┴ç" [perl-mode-syntax-table make-syntax-table standard-syntax-table modify-syntax-entry 10 ">" 35 "<" 36 "/" 37 "." 38 39 "\"" 42 43 45 47 60 61 62 92 "\\" 96 124] 4)
  25. (defconst perl-indent-level 4 "\
  26. *Indentation of Perl statements with respect to containing block.")
  27. (defconst perl-continued-statement-offset 4 "\
  28. *Extra indent for lines not starting new statements.")
  29. (defconst perl-continued-brace-offset -4 "\
  30. *Extra indent for substatements that start with open-braces.
  31. This is in addition to perl-continued-statement-offset.")
  32. (defconst perl-brace-offset 0 "\
  33. *Extra indentation for braces, compared with other text in same context.")
  34. (defconst perl-brace-imaginary-offset 0 "\
  35. *Imagined indentation of an open brace that actually follows a statement.")
  36. (defconst perl-label-offset -2 "\
  37. *Offset of Perl label lines relative to usual indentation.")
  38. (defconst perl-tab-always-indent t "\
  39. *Non-nil means TAB in Perl mode should always indent the current line,
  40. regardless of where in the line point is when the TAB command is used.")
  41. (defconst perl-tab-to-comment t "\
  42. *Non-nil means that for lines which don't need indenting, TAB will
  43. either indent an existing comment, move to end-of-line, or if at end-of-line
  44. already, create a new comment.")
  45. (defconst perl-nochange ";?#\\| \\|\\s(\\|\\(\\w\\|\\s_\\)+:" "\
  46. *Lines starting with this regular expression will not be auto-indented.")
  47. (fset 'perl-mode #[nil "└ ê┴\n!ê├┼╔\n!ê╦╠!ê═P ╦╧!ê ╦╨!ê╤╦╥!ê╙╦╘!ê╤╦╒!ê╓╦╫!ê╪╦┘!ê┌╦█!ê▄╦▌!ê▐╦▀!êαßΓ!ç" [kill-all-local-variables use-local-map perl-mode-map perl-mode major-mode "Perl" mode-name perl-mode-abbrev-table local-abbrev-table set-syntax-table perl-mode-syntax-table make-local-variable paragraph-start "^$\\|" page-delimiter paragraph-separate paragraph-ignore-fill-prefix t indent-line-function perl-indent-line require-final-newline comment-start "# " comment-end "" comment-column 32 comment-start-skip "\\(^\\|\\s-\\);?#+ *" comment-indent-hook perl-comment-indent parse-sexp-ignore-comments nil run-hooks perl-mode-hook] 2 "\
  48. Major mode for editing Perl code.
  49. Expression and list commands understand all Perl brackets.
  50. Tab indents for Perl code.
  51. Comments are delimited with # ... \\n.
  52. Paragraphs are separated by blank lines only.
  53. Delete converts tabs to spaces as it moves back.
  54. \\{perl-mode-map}
  55. Variables controlling indentation style:
  56.  perl-tab-always-indent
  57.     Non-nil means TAB in Perl mode should always indent the current line,
  58.     regardless of where in the line point is when the TAB command is used.
  59.  perl-tab-to-comment
  60.     Non-nil means that for lines which don't need indenting, TAB will
  61.     either delete an empty comment, indent an existing comment, move 
  62.     to end-of-line, or if at end-of-line already, create a new comment.
  63.  perl-nochange
  64.     Lines starting with this regular expression will not be auto-indented.
  65.  perl-indent-level
  66.     Indentation of Perl statements within surrounding block.
  67.     The surrounding block's indentation is the indentation
  68.     of the line on which the open-brace appears.
  69.  perl-continued-statement-offset
  70.     Extra indentation given to a substatement, such as the
  71.     then-clause of an if or body of a while.
  72.  perl-continued-brace-offset
  73.     Extra indentation given to a brace that starts a substatement.
  74.     This is in addition to perl-continued-statement-offset.
  75.  perl-brace-offset
  76.     Extra indentation for line if it starts with an open brace.
  77.  perl-brace-imaginary-offset
  78.     An open brace following other text is treated as if it were
  79.     this far to the right of the start of its line.
  80.  perl-label-offset
  81.     Extra indentation for line that is a label.
  82.  
  83. Various indentation styles:       K&R  BSD  BLK  GNU  LW
  84.   perl-indent-level                5    8    0    2    4
  85.   perl-continued-statement-offset  5    8    4    2    4
  86.   perl-continued-brace-offset      0    0    0    0   -4
  87.   perl-brace-offset               -5   -8    0    0    0
  88.   perl-brace-imaginary-offset      0    0    4    0    0
  89.   perl-label-offset               -5   -8   -2   -2   -2
  90.  
  91. Turning on Perl mode calls the value of the variable perl-mode-hook with no 
  92. args, if that value is non-nil." nil])
  93. (fset 'perl-comment-indent #[nil "n½àl¼é└çè┴┬xêiT ])ç" [0 "     " nil comment-column] 2])
  94. (fset 'electric-perl-terminator #[(arg) "`    ¼├l½└è┬yê├ ┼#?¡ñ╟U½à╚╔!¡Ö╩╦ \" ═ 8«è╬ 8«ä╧ 8)?)½ì╨╤\"ê╥ ê╙╘!ê)╒╓    !!ç" [insertpos arg 0 re-search-forward comment-start-skip t last-command-char 58 looking-at "\\s-*\\(\\w\\|\\s_\\)+$" parse-partial-sexp perl-beginning-of-function pps 3 4 5 insert-char 1 perl-indent-line delete-char -1 self-insert-command prefix-numeric-value] 4 "\
  95. Insert character.  If at end-of-line, and not in a comment or a quote,
  96. correct the line's indentation." "P"])
  97. (fset 'perl-indent-command #[(&optional arg) "½ä┴┬!ç ¼ëi─ X½â┼ ç╞ëë`    \n╦yê`    ╠ \nbê┴═\n\"àφ`Uàφ<½ì╧8«é\në    ¬ä╦Uàφ╞ë╞ê`\nf╥U½îU¡∙╙╘!¬⌠╒    \"╓8½ÉU¡▀╙╫╓8\"¬╓╪8¼ïU¡╔┘ ¬┼╦yê┌▄#½ºl½Å╦öbê▌╞xê▐`\"¬º`W¼çU½ä┘ ¬û╞¬ÆU¼ä╞¬ç╙▀!êαß!*,ç" [arg perl-indent-line " " perl-tab-always-indent current-indentation insert-tab nil oldpnt delta lsexp bof 0 perl-beginning-of-function " \\|;?#" perl-tab-to-comment 2 state eol 61 message "In a format statement" parse-partial-sexp 3 "In a string which starts with a %c." 4 indent-for-comment re-search-forward comment-start-skip move "     " kill-region "Use backslash to quote # characters." ding t] 4 "\
  98. Indent current line as Perl code, or optionally, insert a tab character.
  99.  
  100. With an argument, indent the current line, regardless of other options.
  101.  
  102. If perl-tab-always-indent is nil and point is not in the indentation
  103. area at the beginning of the line, simply insert a tab.
  104.  
  105. Otherwise, indent the current line.  If point was within the indentation
  106. area it is moved to the end of the indentation area.  If the line was
  107. already indented properly and point was not within the indentation area,
  108. and if perl-tab-to-comment is non-nil (the default), then do the first
  109. possible action from the following list:
  110.  
  111.   1) delete an empty comment
  112.   2) move forward to start of comment, indenting if necessary
  113.   3) move forward to end of line
  114.   4) create an empty comment
  115.   5) move backward to start of comment, indenting if necessary." "P"])
  116. (fset 'perl-indent-line #[(&optional nochange parse-start) "└d`Z    «äè┬ )└ëë╔yê`f╩U½â╔¬─╦!ë<½â ¬╕╠«é!½â╔¬½╧└wê╠╨!½ë╤ \\]¬ûg╙U½ç Z¬èg╒U½à \\ iZ╧└wê º½î ╔U¼ç`|ê jêdZ`V½ådZbê .ç" [nil parse-start perl-beginning-of-function shift-amt indent beg bof pos case-fold-search 0 61 calculate-perl-indent looking-at nochange perl-nochange "      " "\\(\\w\\|\\s_\\)+:" 1 perl-label-offset 125 perl-indent-level 123 perl-brace-offset] 6 "\
  117. Indent current line as Perl code.  Return the amount the indentation 
  118. changed by, or (parse-state) if line starts in a quoted string."])
  119. (fset 'calculate-perl-indent #[(&optional parse-start) "è└yê`┴└┴ë½åbê¬â╚ ê`W½É`╔`└#ëA@¬j╩ 8½ä é-\n¼í╦┴wêg╠U½ä└é-═ êo¼àh╬>½ä└é-é-\nf╠U¼ê\nTbêié-═ êh╨=¼Äh╤=½Ü`╥Zfz╙>½æh╨=½ä╘\n!ê└yê═ ê¬\\h╒>¼¢╘\n!êièbê╓╫!)½ä¬ü└\\\\¬∙\nbên½Åèbê╓┘!)½ä«Σè█uê▄┴wê╓▌!½à█yê¬r╓▐!½îè┴ê`)▀α!¼a`W¡ì `V½çß \"Z¬üi)«½n½ì└U½ç#\\¬éΣ┴xên½â└¬é%hµ=½äτΦ!êß \\\\.ç" [0 nil containing-sexp state colon-line-end case-fold-search indent-point parse-start perl-beginning-of-function parse-partial-sexp 3 "      " 123 perl-backward-to-noncomment (59 125) perl-continued-statement-offset 44 58 2 (119 95) perl-backward-to-start-of-continued-exp (59 125 123) looking-at "[     ]*{" perl-continued-brace-offset "[     ]*}" perl-indent-level 1 "      \n" ";?#" "\\(\\w\\|\\s_\\)+:" search-forward ":" current-indentation perl-label-offset perl-brace-offset "     " perl-brace-imaginary-offset 41 forward-sexp -1] 6 "\
  120. Return appropriate indentation for current line as Perl code.
  121. In usual case returns an integer: the column to indent to.
  122. Returns (parse-state) if line starts inside a string."])
  123. (fset 'perl-backward-to-noncomment #[nil "└ë    ?¡ª`├yê─\n╞╟$½ê╟òbê╚└wê╔└xêo«ån?«é╩uë¬W*ç" [nil stop opoint 0 re-search-forward comment-start-skip move 1 ";" "      " -1] 6 "\
  124. Move point backward to after the first non-white-space, skipping comments." nil])
  125. (fset 'perl-backward-to-start-of-continued-exp #[(lim) "h└U½ä┴┬!ê├yê` X½ä Tbê┼╞wç" [41 forward-sexp -1 0 lim "      " nil] 2])
  126. (fset 'indent-perl-exp #[nil "└┬ è─ê┼ ê┬ )└└└    └\n╦!f╠U½å═╬!é╜═╧!êè└ê`)èm¼Ä`X½ê╨`d╤#ê¬o┬ )    ╤yê`╦!W½╫╥└╦!\"ë\nº½èl½â╙ ê┬     └ê`╘╨╦    !\"8½⌐╤yê╒╓!½ò\n<¼É\n╤U¼û╫ \nZU½î┘█#½â▄ ê▌yê¬!╦ !bê═▐!.ç" [nil case-fold-search point-marker oldpnt 2 perl-beginning-of-function bof-mark eol last-mark lsexp-mark delta marker-position 61 message "Can't indent a format statement" "Indenting Perl expression..." parse-partial-sexp 0 perl-indent-line delete-horizontal-space 4 looking-at "\\s-*;?#" current-indentation comment-column re-search-forward comment-start-skip t indent-for-comment 1 "Indenting Perl expression...done"] 5 "\
  127. Indent each line of the Perl grouping following point." nil])
  128. (fset 'perl-beginning-of-function #[(&optional arg) "¼é┴┬W½â┴uê┬U¼ì├─┼╞$½à┬òSbê`ç" [arg 1 0 re-search-backward "^\\s(\\|^\\s-*sub\\b[^{]+{\\|^\\s-*format\\b[^=]*=\\|^\\." nil move] 5 "\
  129. Move backward to next beginning-of-function, or as far as possible.
  130. With argument, repeat that many times; negative args move forward.
  131. Returns new value of point in all cases." "p"])
  132. (fset 'perl-end-of-function #[(&optional arg) "¼é┴┬─V½┴`dW½╝`┼ ½è┴uê╚┴!êo½èo¼â╔uê╚╔!ê┼╩┴!ê╦┼wê╠═!½â┴yê`X¼Q*Së¬;─W¡╖`╚┴!ê╬┴!ê┴yê`Y½£╚╧!êo¼Æ╩┴!ê╦┼wê╠═!½ê┴yê¬âebê)Të¬E)ç" [arg 1 t first 0 nil npos pos perl-beginning-of-function -1 forward-list "     " looking-at "[#\n]" forward-sexp 2] 3 "\
  133. Move forward to next end-of-function.
  134. The end of a function is found by moving forward from the beginning of one.
  135. With argument, repeat that many times; negative args move backward." "p"])
  136. (fset 'mark-perl-function #[nil "└`!ê┴ ê└`!ê┬ ê├ ç" [push-mark perl-end-of-function perl-beginning-of-function backward-paragraph] 2 "\
  137. Put mark at end of Perl function, point at beginning." nil])
  138.